package io.renren.modules.rps.controller;

import io.renren.common.constant.Constant;
import io.renren.common.page.PageData;
import io.renren.common.utils.ConvertUtils;
import io.renren.common.utils.Result;
import io.renren.modules.rps.dto.CenterDailyDTO;
import io.renren.modules.rps.dto.SiteDailyDTO;
import io.renren.modules.rps.service.CenterDailyService;
import io.renren.modules.rps.service.ReportAnalysisService;
import io.renren.modules.rps.service.SiteDailyService;
import io.renren.modules.security.user.SecurityUser;
import io.renren.modules.security.user.UserDetail;
import io.renren.modules.sys.enums.SuperAdminEnum;
import io.renren.modules.sys.service.SysDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/rps/analysis")
public class ReportAnalysisController {


    @Autowired
    private ReportAnalysisService reportAnalysisService;

    @GetMapping("list")
    public Result<List<SiteDailyDTO>> list(@ApiIgnore @RequestParam Map<String, Object> params){
        List<SiteDailyDTO> finalList = reportAnalysisService.list(params);
        return new Result<List<SiteDailyDTO>>().ok(finalList);
    }
}
